All Packages Class Hierarchy This Package Previous Next Index
Class javax.media.j3d.SensorRead
java.lang.Object
|
+----javax.media.j3d.SensorRead
- public class SensorRead
- extends Object
A SensorRead encapsulates all the information associated with a single
reading of a sensor.
-
MAXIMUM_SENSOR_BUTTON_COUNT
- The maximum number of sensor-attached buttons tracked on a per
sensor basis.
-
SensorRead()
- Creates a new SensorRead object.
-
get(Transform3D)
- Retrieve the SensorRead's transform and place it in result
-
getButtons()
- Retrieve this SensorRead's associated button states
-
getTime()
- Retrieve this SensorRead's associated timestamp
-
set(Transform3D)
- Set the SensorRead's transform to the value specified
-
setButtons(int)
- Sets this SensorRead's button state values to the values in the
arguments
-
setTime(long)
- Sets this SensorRead's time to the specified argument
MAXIMUM_SENSOR_BUTTON_COUNT
public static final int MAXIMUM_SENSOR_BUTTON_COUNT
- The maximum number of sensor-attached buttons tracked on a per
sensor basis.
SensorRead
public SensorRead()
- Creates a new SensorRead object.
- Returns:
- s a new SensorRead object.
set
public final void set(Transform3D t1)
- Set the SensorRead's transform to the value specified
- Parameters:
- t1 - this sensor's reading
get
public final void get(Transform3D result)
- Retrieve the SensorRead's transform and place it in result
- Parameters:
- result - the recipient of the this sensor's reading
setTime
public final void setTime(long time)
- Sets this SensorRead's time to the specified argument
- Parameters:
- time - the time to associate with this reading
getTime
public final long getTime()
- Retrieve this SensorRead's associated timestamp
- Returns:
- the SensorRead's time as a long
setButtons
public final void setButtons(int values)
- Sets this SensorRead's button state values to the values in the
arguments
- Parameters:
- value - a int encoding the state of buttons
getButtons
public final int getButtons()
- Retrieve this SensorRead's associated button states
- Returns:
- the button state of this SensorRead.
All Packages Class Hierarchy This Package Previous Next Index